/*
 * ======== Standard includes ========
 */
#include <msp430.h>
#include <inttypes.h>

/*
 * ======== Grace related includes ========
 */
#include <ti/mcu/msp430/csl/CSL.h>

/*
 * ======== Project related includes ========
 */
#include "os/common/common.h"
#include "extensions/extmanager.h"
#include "os/scheduler/scheduler.h"

uint8_t gOsRunning = TRUE;

/*
 *  ======== main ========
 */
int main(int argc, char *argv[]) {
	// Stop watchdog timer
	WDTCTL = WDTPW + WDTHOLD;

	// Activate Grace-generated configuration
	CSL_init();

	// get the extensions
	Extension_t extensions = extmngr_getExtensions();

	// init scheduler
	scheduler_init(extensions);

	// run os
	while (gOsRunning)
		;

	return (0);
}
